import axios from 'axios'
import { API_EMPLOYEE } from '../constant/urls'

// 曾删改查

export const add = (data) => axios({
    url: API_EMPLOYEE,
    method: 'PUT',
    data
})

export const update = (data) => axios({
    url: API_EMPLOYEE,
    method: 'POST',
    data
})

export const del = (data) => axios({
    url: API_EMPLOYEE,
    method: 'DELETE',
    data
})

export const get = () => axios({
    url: API_EMPLOYEE,
    method: 'GET',
})
